package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.common.entity.QueryPageBean;
import com.itheima.pojo.CheckItem;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CheckItemMapper {

    void insert(CheckItem checkItem);

    @Delete("delete from t_checkitem where id = #{id}")
    void deleteById(Integer id);


    void update(CheckItem checkItem);

    Page<CheckItem> selectByCondition(QueryPageBean queryPageBean);

    @Select("select * from t_checkitem where id = #{id}")
    CheckItem findById(Integer id);

    List<CheckItem> selectall();

    List<CheckItem> findCheckItemById(Integer groupId);
}
